import { Entity, Column, PrimaryGeneratedColumn, BaseEntity } from 'typeorm';
// import { ApiProperty } from '@nestjs/swagger';
@Entity('person')
export default class PersonEntity extends BaseEntity {
  // @ApiProperty({name: 'uid', description: 'id编号'})
  @PrimaryGeneratedColumn('increment', { type: 'bigint' })
  id: number;

  // @ApiProperty()
  @Column({ length: 100, comment: '姓名' })
  name: string;

  // @ApiProperty()
  @Column({ comment: '描述', nullable: true })
  description: string;

  // @ApiProperty()
  @Column({ type: 'double', comment: '得分', default: 0.0 })
  score: number;

  // @ApiProperty()
  @Column({ type: 'bigint', comment: '武器ID', nullable: true })
  weaponId: number;

  // @ApiProperty()
  @Column('int', { comment: '观看人数', nullable: true })
  viewPeople: number;
}
